export const $sort = function(arr){
    let maxlength = arr.length-1,tem,flag
    for(var i = maxlength;i>0;i--){
        flag=true
        for(var j = 0;j<i;j++){
            if(arr[j]>arr[j+1]){
                tem = arr[j]
                arr[j] = arr[j+1]
                arr[j+1] = tem
                flag = false
            }
        }
        if(!flag) break
    }
    return arr
}